package com.mall.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mall.bean.Blog;
import com.mall.bean.Goods;
import com.mall.bean.Leave_msg;
import com.mall.dao.BlogDetailDao;
import com.mall.service.IBlogDetailService;

@Service("blogDetailService")
public class BlogDetailServiceImpl implements IBlogDetailService {

	@Resource
	private BlogDetailDao blogDetailDao;

	@Override
	public Blog findBDetail(Blog blog) {
		// TODO Auto-generated method stub
		return blogDetailDao.findBDetail(blog);
	}

	@Override
	public List<Leave_msg> showParent(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.showParent(leave_msg);
	}

	@Override
	public List<Leave_msg> showParent2(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.showParent2(leave_msg);
	}

	@Override
	public List<Leave_msg> showChild(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.showChild(leave_msg);
	}

	@Override
	public int addChildren(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.addChildren(leave_msg);
	}

	@Override
	public int addParent(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.addParent(leave_msg);
	}

	@Override
	public Leave_msg findParent_id(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.findParent_id(leave_msg);
	}

	@Override
	public Leave_msg findChild_id(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.findChild_id(leave_msg);
	}

	@Override
	public Leave_msg findParentLast(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.findParent_id(leave_msg);
	}

	@Override
	public Leave_msg findChildLast(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.findChildLast(leave_msg);
	}

	@Override
	public int delete_PMsg(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.delete_PMsg(leave_msg);
	}

	@Override
	public int delete_CMsg(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.delete_CMsg(leave_msg);
	}

	@Override
	public int findChildNum(Leave_msg leave_msg) {
		// TODO Auto-generated method stub
		return blogDetailDao.findChildNum(leave_msg);
	}


}
